// pages/ScenicArea/ScenicAreaCommitPage/paySuccess/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    payment: ''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: '支付成功'
    })
    this.setData({
      payment: (options.payment / 100).toFixed(2)
    })
  },
  goBack() {
    wx.navigateBack({
      delta: 1
    })
  },
  toOrderDetail() {
    wx.redirectTo({
      url: '/pages/ScenicArea/ScenicAreaOrder/index?status=2',
    })
  }
})